package com.sy.musicapp.intent.service

import com.sy.musicapp.model.Music
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface MusicService {

    @GET("personalized/newsong")
    fun getRecomMusic(): Call<List<Music>>

    @GET("song/url")
    fun getMusicDetail(
        @Query("id") id: String,
        @Query("br") br: String = "320000" //码率
    ): Call<Music>

    @GET("lyric")
    fun getLyric(@Query("id") id: String): Call<String>

}